<jsp:useBean id="coord" class="dasregistry.coordBean" scope="page"/>
<jsp:setProperty name="coord" property="*"/>

<%
	String title = "added coordinate system" ;
 	String header = title;
%>



    <%@ include file="pagehead.jsp" %>    

<body>
<%@ include file="pagebodystart.jsp" %>
<div id="main">


<% if(! isAdmin) 
   { %> 
   You are innot logged in as administrator. Only administrator can create new coordinate systems.   
   <a href="login.jsp">login</a>.
   <% } 
   else { %>


<h2>new coordinate system created</h2>

You provided data:
name:     <%=coord.getName()%><br/>
newname:  <%=coord.getNewName()%><br/>
category: <%

	  String[] cats = coord.getCategories();

	 for (int i=0; i< cats.length;i++) {
	     String cat = cats[i];
	     out.print(cat + " ");
	 }

%><br/>
organism: <%=coord.getOrganism()%><br/>

<% 	if ( coord.create() == 1 ) {
		out.print("coordinateSystem successfully registered");
	}
	else  {	
		out.print("could not register coordinate system:<br>");
		out.print(coord.getMessage());
	}
}
%>

<p>
<a href="help_coordsys.jsp">list all</a> coordinate systems.
</p>
</div>

<%@ include file="sangerfooter.jsp" %>

